import React ,{createContext,useState} from 'react'
const Son = (props) => {    
}
// rfce 函數組件
function Test0101() {
    const [list,setList] =useState(['ad','ap',111])
    return (
        <div>
            <input type="text" /> 
            <button>请点击 {list.length}</button>
            <ul>
                {
                    /* map对数组里边的每个元素进行,加工,并且会返回一个新的数组 */
                    list.map((item,i) => { return <li key={i} > {item}</li> })
                }
                
            </ul>
        </div>
    )
}
export default Test0101
